package xyz.labradormm.spider.enums;

/**
 * @author hhj
 * @description
 * @date 2023-03-29 9:56
 * @menu
 */
public enum StatusCode {



    SUCCESS(200, "success"),
    TOKEN_INVALID(401, "TOKEN已失效"),
    FAIL(500, "当前系统繁忙，请稍后重试"),
    USER_EXISTS(10001, "用户名已存在"),
    USER_NOT_EXISTS(10002, "用户不存在"),
    JWT_ERROR(90001, "jwtToken错误"),
    SYS_COMMON_CONNECTION_TIMEOUT(403003, "连接超时"),
    SYS_COMMON_OPERATION_FAIL(403012, "操作失败"),
    SYS_COMMON_CONNECTION_PROXY_ERROR(403016, "代理端口失效"),
    ;

    private int code;

    private String msg;

    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }}
